#define  _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;

bool IsPalindromic(int num)
{
	string s = to_string(num);
	size_t begin = 0;
	size_t end = s.size()-1;
	while (begin < end)
		if (s[begin++] != s[end--])
			return false;
	return true;
}

int main()
{
	cout << IsPalindromic(12321) << endl;
	return 0;
}